from django.urls import path
from .views import (ListCanvasView,CreateCanvasView,CanvasDetailView,UpdateCanvasView,DeleteCanvasView)

urlpatterns = [
    path('', ListCanvasView.as_view(), name='canvas-list'), # 列表视图
    path('create/', CreateCanvasView.as_view(), name='canvas-create'), # 创建视图
    path('detail/<uuid:canvas_id>/', CanvasDetailView.as_view(), name='canvas-detail'), # 详情视图
    path('update/<uuid:canvas_id>/', UpdateCanvasView.as_view(), name='canvas-update'), # 更新视图
    path('delete/', DeleteCanvasView.as_view(), name='canvas-delete'), # 删除视图
]
